require 'test/unit'
require './rearrange'

class MethodTest < Test::Unit::TestCase

    def test_rearrange_with_middlename
        e = Exercise.new("Marick, Dawn Elaine")
        assert_equal("Dawn E. Marick",e.rearrange)
        e1 = Exercise.new("Li, Sam Xiaoxin")
        assert_equal("Sam X. Li",e1.rearrange) 
    end

end

